Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

177
Views
Getting "check constraint of an insert/update permission has failed" using hasura

In hasura console, using authorization , I am able to insert a user . While doing test with postman , I get the above error

Decrypted token payload used in hasura console (works) :

{
  "issuer": "did:ethr:0xabcde",
  "publicAddress": "0xsmthng",
  "email": "soham@gmail.com",
  "oauthProvider": null,
  "phoneNumber": null,
  "iat": 1655565376,
  "exp": 1756170176,
  "https://hasura.io/jwt/claims": {
    "x-hasura-allowed-roles": [
      "user",
      "admin"
    ],
    "x-hasura-default-role": "user",
    "x-hasura-user-id": "did:ethr:0xabcd"
  }
}

Decrypted token payload created by my pc (doesnt work) :

{
  "issuer": "did:ethr:0xsmth",
  "publicAddress": "0xsmth",
  "email": "soham@gmail.com",
  "oauthProvider": null,
  "phoneNumber": null,
  "iat": 1656959724,
  "exp": 1657564524,
  "https://hasura.io/jwt/claims": {
    "x-hasura-allowed-roles": [
      "user",
      "admin"
    ],
    "x-hasura-default-role": "user",
    "x-hasura-user-id": "did:ethr:0xsmth"
  }
}

This is my operation doc in hasura.js file

 const operationsDoc = `
  mutation createNewUser($issuer: String!,$email:String!,$publicAddress: String!) {
    insert_users(objects: {email: $email, user_id: $issuer, public_address: $publicAddress}) {
      affected_rows
      returning {
        user_id
        updated_at
        public_address
        last_name
        is_verified
        id
        first_name
        email
        created_at
      }
    }
  }
`;
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!